﻿@model IEnumerable<ePhoneBook.Models.TaylorCustomerModel>
@{
    ViewBag.Title = "TaylorCustomer";
}
<h2>
    TaylorCustomer</h2>
<p>
    @Html.ActionLink("Create New", "Create", new { }, new { @class = "btn btn-primary" })
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.CustomerCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CustomerFullName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MobileNumber)
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.CustomerCode)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CustomerFullName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.MobileNumber)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { customerCode = item.CustomerCode }) |
                @Html.ActionLink("Details", "Details", new { customerCode = item.CustomerCode })|
                @Html.ActionLink("Delete", "Delete", new { customerCode = item.CustomerCode })
            </td>
        </tr>
    }
</table>
